package com.example.jwtauthdemo.util;

import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class Uuid {
    public String getUuid()
    {
        UUID uuidV4 = UUID.randomUUID();
        //去除连接符
        String uuid = uuidV4.toString().replaceAll("-", "");
        return uuid;
    }

}
